package com.example.yiqiuser.service;

import com.example.yiqiuser.entity.Contact;
import com.example.yiqiuser.util.Page;
import com.github.pagehelper.PageInfo;


import java.util.List;

/**
 * @ fileName:PtFcontactService
 * @ description:
 * @ author:chen
 * @ createTime:2023/3/31 14:11
 * @ version:1.0.0
 */
public interface IContactService {
    /**
     * 根据用户Id获取联系人
     * @param userId
     * @return
     */
    List<Contact> queryByUserId(String userId);

    PageInfo queryPage(Page<Contact> page);

    List<Contact> queryAll();

    Contact queryById(int id);

    int addContact(Contact contact);

    int updateContact(Contact contact);

    int deleteById(int id);
}
